package com.ruoyi.maode.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 获取零件详情接收类
 * @author zhangwenqiang
 */
@Data
public class PartDetailVO implements Serializable {

    /**
     * 零件序号
     */
    @Excel(name = "零件序号")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "零件编码")
    private String partCode;

    @Excel(name = "零件名称")
    private String partName;

    @Excel(name = "零件重量")
    private String partWeight;

    @Excel(name = "机型")
    private String model;

    @Excel(name = "零件类型,0-毛坯，1-成品")
    private Integer type;

    @Excel(name = "零件描述")
    private String partDescription;

    @Excel(name = "是否删除,0-否，1-是")
    private Integer isDelete;

    @ApiModelProperty(value = "图片列表")
    private List<ImageDetailVO> images;

    @ApiModelProperty(value = "excel检基文件名称")
    private String fileName;

    @ApiModelProperty(value = "excel检基文件地址")
    private String filePath;

    @Excel(name = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
